<?php

namespace app\admin\model;

use think\Model;


class Recharge extends Model
{

    // 表名
    protected $name = 'recharge';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];

    const STATUS_OK = 1;
    const STATUS_NO = 0;
    static $statusMap = [
        self::STATUS_OK => '已充值',
        self::STATUS_NO => '未处理',
    ];

    public function shop()
    {
        return $this->belongsTo(Shop::class, 'shop_id');
    }

    public function agent()
    {
        return $this->belongsTo(Agent::class);
    }
    

    







}
